import requests


class IhrmLoginAip(object):
    # 登录接口测试
    @classmethod
    def login(cls, json_data):
        url = "http://ihrm-test.itheima.net/api/sys/login"
        header = {"Content-Type": "application/json"}
        resp = requests.post(url=url, headers=header, json=json_data)
        return resp

if __name__ == '__main__':
    resp = IhrmLoginAip.login({"mobile": "13800000002", "password": "123456"})
    print(resp.json())